<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>B-颜色渐变</title>
    <style>
        /*.demo {*/
            /*width: 100px;*/
            /*height: 100px;*/
            /*background: linear-gradient(red,green);*/
        /*}*/
        
        .demo {
            width: 100px;
            height: 100px;
            background: linear-gradient(red 70%,green);
        }
    </style>
</head>
<body>
    <div class="demo">

    </div>
</body>
</html>